﻿using System;

namespace Yyd.OrganizationUnits
{
    public class OrganizationUnitData : IOrganizationUnit
    {
        public OrganizationUnitData(Guid? parentId, Guid id, string code, string displayName, OrganizationUnitType type)
        {
            ParentId = parentId;
            Id = id;
            Code = code;
            DisplayName = displayName;
            Type = type;
        }

        public Guid? ParentId { get; }
        public Guid Id { get; }
        public string Code { get; }
        public string DisplayName { get; }
        public OrganizationUnitType Type { get; }
    }
}
